﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;

namespace IData
{
   public interface IDbLogin
    {
        /// <summary>
        /// 增加\删除\修改
        /// </summary>
        /// <param name="LineQ">语句</param>
       int add(string sql);
       /// <summary>
        /// 查询
        /// </summary>
        /// <param name="sql">语句</param>
        /// <returns></returns>
       DataTable select(string sql);
       /// <summary>
       /// 获取存储过程返回的bool值
       /// </summary>
       /// <param name="procedureName">存储过程名称</param>
       /// <param name="parameters">参数</param>
       /// <returns>bool</returns>
       bool selectBool(string procedureName, params SqlParameter[] parameters);
    }
}
